<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <title>Title</title>
</head>
<body>
<p th:text="${msg}"></p>
<table border="1" cellpadding="7" cellspacing="0">
    <tr align="center">
        <td>id</td>
        <td>编号</td>
        <td>书名</td>
        <td>类型</td>
        <td>作者</td>
        <td>出版社</td>
        <td>发布日期</td>
        <td>创作者</td>
        <td>创建日期</td>
        <td>最后更新日期</td>
        <td>操作</td>
    </tr>
    <tr th:each="item,stat : ${list}" align="center">
        <td th:text="${item.book_id}"></td>
        <td th:text="${item.book_code}"></td>
        <td th:text="${item.book_name}"></td>
        <td th:text="${item.book_type}"></td>
        <td th:text="${item.book_atuthor}"></td>
        <td th:text="${item.publish_press}"></td>
        <td
                th:text="${#dates.format(item.publish_date,'yyyy-MM-dd HH:mm:ss')}"></td>
        <td th:text="${item.createdBy}"></td>
        <td
                th:text="${#dates.format(item.creation_time,'yyyy-MM-dd HH:mm:ss')}"></td>
        <td
                th:text="${#dates.format(item.last_updatetime,'yyyy-MM-dd HH:mm:ss')}"></td>
        <td><a th:href="@{/standard/{id}(id=${item.book_id})}">修改</a>
            <a th:href="${'/blog/delete/' + item.book_id}">删除</a></td>
    </tr>
</table>
</body>
</html>